svm: implement CR access part of DecodeAssist
authorAndre Przywara <andre.przywara@amd.com>
Mon, 18 Apr 2011 09:01:06 +0000 (10:01 +0100)
committerAndre Przywara <andre.przywara@amd.com>
Mon, 18 Apr 2011 09:01:06 +0000 (10:01 +0100)
commitad3b9c5faa13cca130e56e8dbcd0febf8d2ba961
treeea49999d2d113943e7acf4e2c8c1ea1a28652131
parent1962e1f81464e8a9749c19d538ecf746bf68e330
svm: implement CR access part of DecodeAssist

Newer SVM implementations (Bulldozer) now give the used general
purpose register on a MOV-CR intercept explictly. This avoids
fetching and decoding the instruction from guest's memory and speeds
up some Windows guest, which exercise CR8 quite often.

Signed-off-by: Andre Przywara <andre.przywara@amd.com>
Signed-off-by: Keir Fraser <keir@xen.org>
xen/arch/x86/hvm/svm/svm.c